const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 快速访问 获取token
  // 在根级的getters上 开发子模块的属性给别人看 给别人用
  token: state => state.user.token,
  // 建立快捷访问
  username: state => state.user.userInfo.username,
  // 建立id的快捷访问
  userId: state => state.user.userInfo.userId,
  userInfo: state => state.user.userInfo,
  // 建立头像的快捷访问
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
  // 获取公司id
  companyId: state => state.user.userInfo.companyId,
  // 开放子模块的路由模块
  routes: state => state.permission.routes // 导出当前的路由
}
export default getters
